package com.bawei.es.service;

import com.bawei.es.domain.BulkDeleteDocs;
import com.bawei.es.domain.DocsQueryReq;
import com.bawei.es.domain.DocumentReq;
import com.bawei.es.domain.EsDocsQuery;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author : zhangyu
 * @date 2023/11/14 16:32
 */
public interface EsDocumentService {
    void insertDocument(DocumentReq documentReq);

    boolean isExists(String indexName);


    void blukDocument(DocumentReq bulkDocsReq);

    void updateDocument(DocumentReq documentReq);

    EsDocsQuery docsQuery(DocsQueryReq docsQueryReq);


    void deleteDocument(BulkDeleteDocs documentId);
}
